package com.ruoyi.system.service;

import java.util.List;
import com.ruoyi.system.domain.Shoppingcart;

/**
 * 购物车Service接口
 * 
 * @author ruoyi
 * @date 2023-12-04
 */
public interface IShoppingcartService 
{
    /**
     * 查询购物车
     * 
     * @param shopId 购物车主键
     * @return 购物车
     */
    public Shoppingcart selectShoppingcartByShopId(Long shopId);

    /**
     * 查询购物车列表
     * 
     * @param shoppingcart 购物车
     * @return 购物车集合
     */
    public List<Shoppingcart> selectShoppingcartList(Shoppingcart shoppingcart);

    /**
     * 新增购物车
     * 
     * @param shoppingcart 购物车
     * @return 结果
     */
    public int insertShoppingcart(Shoppingcart shoppingcart);

    /**
     * 修改购物车
     * 
     * @param shoppingcart 购物车
     * @return 结果
     */
    public int updateShoppingcart(Shoppingcart shoppingcart);

    /**
     * 批量删除购物车
     * 
     * @param shopIds 需要删除的购物车主键集合
     * @return 结果
     */
    public int deleteShoppingcartByShopIds(Long[] shopIds);

    /**
     * 删除购物车信息
     * 
     * @param shopId 购物车主键
     * @return 结果
     */
    public int deleteShoppingcartByShopId(Long shopId);
}
